﻿namespace Sai.Core.Introspection
{
	public class Parameter : ISourceCodeProvider
	{
		public Parameter()
		{
		}

		public Parameter(TypeName typeName)
		{
			this.TypeName = typeName;
		}

		public TypeName TypeName { get; set; }

		public override string ToString()
		{
			return this.TypeName.Name;
		}

		public override int GetHashCode()
		{
			return this.TypeName.GetHashCode();
		}

		public SourceCode ToCode()
		{
            return this.TypeName.ToCode();
		}
	}
}
